<include file="Public:head" />
<body>
<div id="body-wrapper">
  <div id="sidebar">
    <div id="sidebar-wrapper">
		<include file="Public:left-nav" />
    </div>
  </div>
  <!-- End #sidebar -->
  <style type="text/css">
	body{color:#000;}
  </style>
  <div id="main-content">
    
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h4>视频管理</h4>
      </div>
<script type="text/javascript">
	$(document).ready(function(){
			$('.del').bind('click',function(){
					if(confirm("删除后不能恢复，确定要删除吗？")){
						var numid = $(this).attr("delnum");
				$.post('__URL__/del/'+numid,function(jdata){
						//if(confirm("<?php echo $confirm?>")){
						if(jdata.status==3){
										if(jdata.data!=''){
												$('#ajax').show().animate({'margin-top':'5px'}).html('<div><b>'+jdata.info+'</b></div>').delay(300).animate({'margin-top':'-5px'}).fadeOut(500);
												$('tr[delnum='+numid+']').remove();
										}else{
											alert('数据有误，请联系管理员！');
										}
								}else{
												$('#ajax').show().animate({'margin-top':'5px'}).html('<div><b>'+jdata.info+'</b></div>').delay(300).animate({'margin-top':'-5px'}).fadeOut(500);
												//$('<?php echo $button?>[num='+numid+']').html(jdata.data);
										}
						//}
				});
					} //confirm end
		});
	});
</script>
<div id="ajax" class="notification" style="width:20%;margin-left:22%; position: absolute;top:10%;background-color:#99ff00;display:none;position:fixed;z-index:999;"></div>
<div class="content-box-content">
        <div class="tab-content default-tab">
         <div class="notification information">
      <div>
	  <form method="post" action="__URL__/add">
			视频标题：<input type="text" name="title" size="40" /><br />
			视频网址 ↓
			<TEXTAREA name="movepath" rows="1">http://192.168.7.49/tjd.timehr.com/xxxx.mp4</TEXTAREA><br />
			视频分类：<SELECT name="status">
				<OPTION value="1" selected>沙龙视频
				<OPTION value="2">培训视频
				<OPTION value="3">季度会视频
				<OPTION value="4">活动视频
				<OPTION value="5">其他视频
				<OPTION value="6">音频
			</SELECT><br />
			<!-- 视频密码：<input type="text" name="password" size="18" /><br />-->
			<input type="submit" value="提交" style="width:150px;height:30px;margin-left:5%;"/> 
	  </form>
	 </div>
    </div>
          <table>
            <thead>
			  <tr>
				<td colspan="5">
				<FORM method="post" action="__URL__">
					<b>搜索关键字：</b><input type="text" name="text" value="{$text}" /><input type="submit" value="开始搜索" />&nbsp;
				</FORM>
				<br />
				分类搜索： <a href="__URL__">[全部]</a> <a href="__APP__/Move/index/1">[沙龙视频]</a> <a href="__APP__/Move/index/2">[培训视频]</a> <a href="__APP__/Move/index/3">[季度会视频]</a> <a href="__APP__/Move/index/4">[活动视频]</a> <a href="__APP__/Move/index/5">[其他视频]</a> <a href="__APP__/Move/index/6">[音频]</a></td>
			  </tr>
              <tr>
                <th>视频标题</th>
				<th>视频分类</th>
				<!-- <th>视频密码</th> -->
                <th>发布日期</th>
				<th>操作处理</th>
              </tr>
            </thead>
            <tfoot>
              <tr>
                <td colspan="5">
                  <div class="bulk-actions align-left">
						<!-- <button id="submit">批量删除</button> -->
				  </div>
                  <div class="pagination"><a href="#" class="number current">{$page}{$empty}</a> 
				  </div>
                  <!-- End .pagination -->
                  <div class="clear"></div>
                </td>
              </tr>
            </tfoot>
            <tbody>
			<foreach name="list" item="vo">
              <tr delnum="{$vo.id}">
                <td><a href="__ROOT__/test.php/Move/show/{$vo.id}"  target="_blank">{$vo.title}</a></td>
				<td>
					<switch name="vo.status">
						<case value="1">沙龙视频</case>
						<case value="2">培训视频</case>
						<case value="3">季度会视频</case>
						<case value="4">活动视频</case>
						<case value="5">其他视频</case>
						<case value="6">音频</case>
						<default />未知
					</switch>

				</td>
				<!-- <td>{$vo.password}</td> -->
				<td>{$vo.date|date='Y-m-d H:i:s',###}</td>
				<td><a href="__URL__/edit/{$vo.id}">修改</a> | <span delnum="{$vo.id}" class="del">删除</span></td>
              </tr>
			 </foreach>
            </tbody>
          </table>
        </div>
      </div>
      <!-- End .content-box-content -->
    </div>
    <div id="footer"> <small>
      &#169;腾驹达后台 2013| Powered by <a href="#">admin</a> | <a href="#">Top</a> </small> 
	  </div>
    <!-- End #footer -->
  </div>
  <!-- End #main-content -->
</div>
<!-- End #body-wrapper-->
</body>
</html>
